package com.jic.veteran.portal.service;

import cn.hutool.json.JSONObject;
import com.jic.veteran.model.ProjectBasic;
import com.jic.veteran.portal.domain.ProjectBasicQueryParam;
import com.jic.veteran.portal.domain.ProjectDonationTotalDto;
import java.util.List;

public interface ProjectService {
    List<ProjectBasic> listAll();
    List<ProjectBasic> list(ProjectBasicQueryParam projectBasicQueryParam, Integer pageSize, Integer pageNum);
    JSONObject getItem(Long id);
    JSONObject getItemByProjectId(String projectId);
    JSONObject getProjectBasic(String projectId);
    JSONObject getProjectImplement(String projectId);

  /**
   * 根据项目编号,查询捐款总额和人次.
   *
   * @param projectId 项目id
   * @return 捐款总额和人次
   */
  ProjectDonationTotalDto getActualFundingByProjectId(String projectId);
}
